Component({
  properties: {
    tabList: {
      type: Array,
      value: [],
    },
    curLabel: {
      type: String,
      value: null,
    },
  },

  methods: {
    active(e) {
      const { tabItem } = e.currentTarget.dataset;
      this.triggerEvent('active', tabItem);
    },
  },
});
